package com.atguigu.mock.utils;

/**
 * @ClassName: RanOpt
 * @Description:
 * @Author: kele
 * @Date: 2021/3/16 15:02
 *
 * value是值，weight是权重，
 * 会根据权重生成值的比例
 * 随机产生一个选项
 **/
public class RanOpt <T>{

    T value ;
    int weight;

    public RanOpt ( T value, int weight ){
        this.value=value ;
        this.weight=weight;
    }

    public T getValue() {
        return value;
    }

    public int getWeight() {
        return weight;
    }
}

